Skip to main content
Version: Upcoming

SymbolRiskSummaryV5

V8 Message Definiton

SymbolRiskSummary records contain live symbol level risk aggregation of StockPositionRecord and OptionPositionRecord values.\nRecords are published by AggRiskServers if/when positions change and about once per minute otherwise.

METADATA

AttributeValue
Topic4740-risk-v5
MLink TokenClientRisk
ProductSRRisk
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'stock ticker eg MSFT SPY
ticker_tsenum - TickerSrcPRI'None'stock ticker eg MSFT SPY
ticker_tkVARCHAR(12)PRI''stock ticker eg MSFT SPY
accntVARCHAR(16)PRI''SRAccnt SR assignedup to 16 chars
tradeDateDATEPRI'1900-01-01'
riskSessionenum - RiskSessionPRI'Regular'
clientFirmVARCHAR(16)PRI''SR assigned client firm
sectorVARCHAR(16)''SymbolControlsector user defined sector code
industryINT0industry code 00000000
betaFLOAT0beta usually beta to SPX see AccountConfigbetaSource
betaSourceenum - BetaSource'None'
uPrcDOUBLE0current live underlier price can be from risk server tool server or srse server
uMarkDOUBLE0current underlier price as of risk server record publish freezes at 4pm EST
uOpnMarkDOUBLE0startofday SR underlier mark rotated from prior day record corp action adjusted
lnDDeltaDOUBLE0long net position delta value today SR marks
shDDeltaDOUBLE0short net position delta value today SR marks
lnStkMktValueMidDOUBLE0long stock market value today SR marks
shStkMktValueMidDOUBLE0short stock market value today SR marks
optMktValueMidDOUBLE0option position market value SR mid markssumopCurPosM oproptVolMark
optMktValueVolDOUBLE0option position market value SR vol markssumopCurPosM oproptMidMark
shOpnPosClrINT0start of period position from custodian or clearing firm
shOpnPosPrvINT0start of period position expectedfrom SpiderRock archive
shOpnPosINT0start of period position effectivefrom either SR or CLR record
shBotINT0number of shares bot today
shSldINT0number of shares sld today
shSldShrtINT0number of shares sld short today
shMnyBotDOUBLE0shares money bot today
shMnySldDOUBLE0shares money sld today
shBotHdgINT0number of shares bot today from open pos hedging spdrSourceHedgeTool
shSldHdgINT0number of shares sld today from open pos hedging spdrSourceHedgeTool
shBotTrhINT0number of shares bot today from open pos hedging spdrSourceTradeHedge
shSldTrhINT0number of shares sld today from open pos hedging spdrSourceTradeHedge
shBotOpnINT0number of shares bot today from open pos hedging spdrSourceOpenHedge
shSldOpnINT0number of shares sld today from open pos hedging spdrSourceOpenHedge
shBotTrdINT0number of shares bot today from a trade hedging source AutoHedge or Trades loop
shSldTrdINT0number of shares sld today from a trade hedging source AutoHedge or Trades loop
maxStkDttmDATETIME(6)'1900-01-01 00:00:00.000000'most recent timestamp of a qualifying stock execution used to ensure risk record integrity
stPnlMidDOUBLE0Stock Pnl SR Marksnbbomid stPrvPrc shOpnClr
stPnlClrDOUBLE0Stock Pnl CLR Marksnbbomid stClrPrc shOpnClr
stPnlDayDOUBLE0Net Stock Day Pnlsum nbbomin fillPrice fillQuantity side
stDivPnlDOUBLE0total cash paidcollected since prior period for this position stock dividend value
stBorrowPnlDOUBLE0total cash paidcollected since prior period for this position borrow pnl usually interest on HTB names
opCnAbsCurPosINT0abs number of option contracts position fillssumabsoprcnCurPos
opCnAbsOpnClrINT0abs number of start of period option contracts CLR view sumabsoprcnOpnClr
opCnAbsOpnPrvINT0abs number of start of period option contracts SR view sumabsoprcnOpnPrv
opCnAbsOpnPosINT0abs number of start of period option contracts sumabsoprcnOpnPos
opCnAbsOpnBrkINT0abs number of option contract start of period breaks CLR PRVsumabsoprcnOpnClr oprcnOpnPrv
opShShortINT0equivalent shares from short option positions
opCnPosCallINT0net number of call contracts sumoprcnOpnClr oprcnBot oprcnSld if call
opCnPosPutINT0net number of call contracts sumoprcnOpnClr oprcnBot oprcnSld if put
opCnAbsPairINT0abs number of option contracts with CP reversals removedsumabsoprcnOpnClr oprcnBot oprcnSld absoprcnNetPos
absAtmEquivCnFLOAT0abs atm equivalent contracts sumabsoprcnOpnPos oprcnBot oprcnSld oprve opratmVega
opCnBotINT0number of option contracts bot todaysumoprcnBot
opCnSldINT0number of option contracts sld todaysumoprcnSld
opMnyBotDOUBLE0option money bot
opMnySldDOUBLE0option money sld
opPremBotFLOAT0option premium bot todaysummax0 oproptVolMark oprloBound oprpointValue oprcnBot
opPremSldFLOAT0option premium sld todaysummax0 oproptVolMark oprloBound oprpointValue oprcnSld
maxOptDttmDATETIME(6)'1900-01-01 00:00:00.000000'DateTime of most recent SpdrOptionExecution if any
opPnlVolDOUBLE0Option Open Pnl SR vol marks sumopropnPnlVolMark
opPnlMidDOUBLE0Option Open Pnl SR mid marks sumopropnPnlMidMark
opPnlClrDOUBLE0Option Open Pnl CLR marks sumopropnPnlClrMark
opPnlBrkDOUBLE0Option Mark Break Pnl SR vol marks to CLR markssumoprcnOpnClr oprpointValue oproptVolMark oproptMidMark
opPnlDayDOUBLE0Option Day PnlsumoprdayPnl
opDnPnlDayDOUBLE0Option DN Day Pnl delta neutralsumoprdnDayPnl
opDayVegaFLOAT0Option Day Vegasumoprve oprcnBot oprcnSld oprpointValue
opDayWVegaFLOAT0Option Day Vol Weighted Vegasumoprve opriVol oprcnBot oprcnSld oprpointvalue
opDayTVegaFLOAT0Option Day TimeWeighted Vegasumoprve sqrtmax01 opryears 4 oprcnBot oprcnSld oprpointValue
opDayWtVegaFLOAT0Option Day Vol TimeWeighted Vegasumoprve opriVol sqrtmax01 opryears 4 oprcnBot oprcnSld oprpointValue
opDayThetaFLOAT0Option Day Thetasumoprth oprcnBot oprcnSld oprpointValue
opDayDeltaFLOAT0Option Day Deltasumoprde oprcnBot oprcnSld oprunderliersPerCn
opTrdDeltaFLOAT0Option Trade Delta delta fixed at time of tradesumoprtrdDelta
pairPnlFLOAT0Aggregate Dn Pair PnlsumshNetClrM oproptVolMark oproptOpnVolMark oprhedgeDePr opruMark opruOpnMark
contHedgePnlFLOAT0Estimated continuous hedging pnl open positions only 1 minute intervals
contHedgePnl1FLOAT0Estimated continuous hedging pnl open positions only 10 minute intervals
opEdgeOpenedFLOAT0Option Edge Opened new risksumopredgeOpened
opEdgeClosedFLOAT0Option Edge Closed new risksumopredgeClosed
pnlDnFLOAT0Option Pnl Attr delta neutral pnl sumvolPnl shClrM dUPrc oprdePr
pnlDeFLOAT0Option Pnl Attr delta pnlsumshClrM dUPrc oprdePr
pnlSlFLOAT0Option Pnl Attr slope pnlsumshClrM dUPrc oprvePr oprveSlopePr
pnlGaFLOAT0Option Pnl Attr gamma pnlsumshClrM 05 dUPrc dUPrc oprga oprgaPr2
pnlThFLOAT0Option Pnl Attr theta pnlsumshClrM dTime oprthPr
pnlVeFLOAT0Option Pnl Attr vega pnlsumshClrM 100 dVol oprvePr
pnlVoFLOAT0Option Pnl Attr volga pnlsumshClrM 05 100 100 dVol dVol oprvoPr
pnlVaFLOAT0Option Pnl Attr vanna pnlsumshClrM 100 dVol dUPrc oprvaPr
pnlErrFLOAT0Option Pnl Attr error unexplained pnlsumshClrM volPnl pnlDe pnlGa pnlTh pnlVe
pnlRateFLOAT0Option Pnl Attr rate pnlsumshClrM 100 dRate oprrhPr
pnlSDivFLOAT0Option Pnl Attr sdiv pnlsumshClrM 100 dSDiv oprphPr
pnlDDivFLOAT0Option Pnl Attr ddiv pnlsumshClrM 100 oprddiv oprddivPr opruPrc oprphPr
pnlTeFLOAT0Option Pnl Attr theo edge pnlsumshClrM oprtOpx oproptVolMark oprtOpxPr oproptOpnVolMark
pctIvChangeFLOAT0Option Avg IVol Change NumeratorsumabsshClrM oprve logopriVolopriVolPr
pctIvVegaFLOAT0Option Avg IVol Change DenominatorsumabsshClrM oprve
pctTvChangeFLOAT0Option Avg TVol Change NumeratorsumabsshClrM oprve logoprtVoloprtVolPr
pctTvVegaFLOAT0Option Avg TVol Change DenominatorsumabsshClrM oprve
stkWidthMnyFLOAT0Stock Market Width Valuesum05 absshCurPos sprstkAsk sprstkBid
optWidthMnyFLOAT0Option Market Width Valuesum05 absshCurPosM oproptAsk oproptBid
dayDDeltaFLOAT0Day Delta bot or sldall sources today
deltaFLOAT0Aggregate Position DeltasumshCurPos sumfcCurPosM sumshCurPosM oprde sumotherdelta
ddeltaFLOAT0Aggregate Position Delta Delta DDMult
deDecayFLOAT0Aggregate Position DeltaDecaysumshCurPosM oprdeDecay sumotherdeDecay
ddDecayFLOAT0Aggregate Position DeltaDecay DeltaDecay DDMult change in delta when one trading day 102520 is taken out of option pricing
gammaFLOAT0Aggregate Position GammasumshCurPosM oprga sumothergamma
dGammaFLOAT0Aggregate Position Gamma
thetaFLOAT0Aggregate Position ThetasumshCurPosM oprth sumothertheta
rhoFLOAT0Aggregate Position RhosumshCurPosM oprrh sumotherrho
vegaFLOAT0Aggregate Position VegasumshCurPosM oprve sumothervega
tVegaFLOAT0Aggregate Position Time Weight VegasumshCurPosM oprve sqrtmax01 opryears 4
wVegaFLOAT0Aggregate Position Vol Weighted VegasumshCurPosM opriVol oprve
wtVegaFLOAT0Aggregate Position Vol Time Weighted VegasumshCurPosM opriVol oprve sqrtmax01 opryears 4
ivolVeFLOAT0Aggregate Position Avg Vol Numerator vega weighted avg ivolVe avega sumabsshCurPosM opriVol oprve
volgaFLOAT0Aggregate Position VolgasumshCurPosM oprvo sumothervolga
vannaFLOAT0Aggregate Position VannasumshCurPosM oprva sumothervanna
slopeFLOAT0Aggregate Position VegaDelta uPrcVol correlation factorsumshCurPosM oprsl oprve sumotherslope
avegaFLOAT0Aggregate Postion Abs VegasumabsshCurPosM oprve
athetaFLOAT0Aggregate Postion Abs Theta sumabsshCurPosM oprth
hedgeGammaFLOAT0Aggregate Postion Hedge Gamma either iVol or tVol basedcan go binarysumshCurPos oprhedgeGa
hedgeDGammaFLOAT0Aggregate Postion Hedge Gamma
premOvParFLOAT0Aggregate Position Premium Over ParitysumshCurPosM max0 oproptVolMark oprloBound
simpPremOvParFLOAT0Aggregate Position Premium Over Parity SimplesumshCurPosM max0 opropxMidMark max0 strike uprc
wtVeDdFLOAT0Aggregate Dd Time Weighted Vega sumwtVega if oprxde 030
wtVeDnFLOAT0Aggregate Dn Time Weighted Vega sumwtVega if 030 oprxde 010
wtVeAtFLOAT0Aggregate At Time Weighted Vega sumwtVega if absoprxde 010
wtVeUpFLOAT0Aggregate Up Time Weighted Vega sumwtVega if 010 oprxde 030
wtVeDuFLOAT0Aggregate Du Time Weighted Vega sumwtVega if 030 oprxde
wtVeM1FLOAT0Aggregate M1 Time Weighted Vega sumwtVega if days 10
wtVeM2FLOAT0Aggregate M2 Time Weighted Vega sumwtVega if 10 days 25
wtVeM3FLOAT0Aggregate M3 Time Weighted Vega sumwtVega if 25 days 65
wtVeM4FLOAT0Aggregate M4 Time Weighted Vega sumwtVega if 65 days 130
wtVeM5FLOAT0Aggregate M5 Time Weighted Vega sumwtVega if 130 days
pinXXFLOAT0pin strike nearest to current uPrc zero none only exists if there are near ATM option positions expiring today
opnDeBelowFLOAT0Aggregate Position Open Delta Open Positions Open Hedge Trades Only if liveUPrc pinXX
opnDeAboveFLOAT0Aggregate Position Open Delta Open Positions Open Hedge Trades Only if liveUPrc pinXX
opnDDeBelowFLOAT0Aggregate Position Open Delta Open Positions Open Hedge Trades Only if liveUPrc pinXX
opnDDeAboveFLOAT0Aggregate Position Open Delta Open Positions Open Hedge Trades Only if liveUPrc pinXX
posDeBelowFLOAT0Aggregate Position Hedge Delta Current Position if liveUPrc pinXX
posDeAboveFLOAT0Aggregate Position Hedge Delta Current Position if liveUPrc pinXX
posDDeBelowFLOAT0Aggregate Position Hedge Delta Current Position if liveUPrc pinXX
posDDeAboveFLOAT0Aggregate Position Hedge Delta Current Position if liveUPrc pinXX
posHedgeDeltaExFLOAT0Aggregate Position Hedge Delta Current Position if exDate today
posHedgeDDeltaExFLOAT0Aggregate Position Hedge Delta Current Position if exDate today
mmhDeltaFLOAT0Aggregate Delta allocated from other symbols multimultihedge symbols
mmhContractsINT0Aggregate Contracts allocated from other symbols multimultihedge symbols
mmhSourcesTINYTEXT''Allocation source string usually mmh contracts
tEdgeFLOAT0Aggregate Theo EdgesumshNetPosM oprtOpx oproptVolMark if oprtVol 001 and oprtOpx 00 and oproptVolMark 00
tEdgeMultFLOAT0Aggregate Abs Net Contracts RevConv contracts removed sumabsshNetPosM
tEdgePrFLOAT0Prior Day Theo Edge
tEdgeMultPrFLOAT0Prior Day Aggregate Abs Net Contracts
numTVolErrorsSMALLINT0number of oprtErr 0 or oprtVol 001
posTEdgeWVFLOAT0Aggregate Vol Weighted Vega wvega where oprtOpx 0 and oprtOpx oproptVolMark 0
negTEdgeWVFLOAT0Aggregate Vol Weighted Vega wvega where oprtOpx 0 and oprtOpx oproptVolMark 0
badTEdgeWVFLOAT0Aggregate Vol Weighted Vega wvega where oprtOpx 0
posTEdgePnlFLOAT0Aggregate Dn Pair Pnl where oprtOpxPr 0 and oprtOpxPr oprpriorOpxVolMark 0
negTEdgePnlFLOAT0Aggregate Dn Pair Pnl where oprtOpxPr 0 and oprtOpxPr oprpriorOpxVolMark 0
badTEdgePnlFLOAT0Aggregate Dn Pair Pnl where oprtOpxPr 0
tEdge2FLOAT0Aggregate Theo EdgesumshNetPosM oprtOpx oproptVolMark if oprtVol 001 and oprtOpx 00 and oproptVolMark 00
tEdgeMult2FLOAT0Aggregate Abs Net Contracts RevConv contracts removed sumabsshNetPosM
tEdgePr2FLOAT0Prior Day Theo Edge
tEdgeMultPr2FLOAT0Prior Day Aggregate Abs Net Contracts
numTVolErrors2SMALLINT0number of oprtErr 0 or oprtVol 001
posTEdgeWV2FLOAT0Aggregate Vol Weighted Vega wvega where oprtOpx 0 and oprtOpx oproptVolMark 0
negTEdgeWV2FLOAT0Aggregate Vol Weighted Vega wvega where oprtOpx 0 and oprtOpx oproptVolMark 0
badTEdgeWV2FLOAT0Aggregate Vol Weighted Vega wvega where oprtOpx 0
posTEdgePnl2FLOAT0Aggregate Dn Pair Pnl where oprtOpxPr 0 and oprtOpxPr oprpriorOpxVolMark 0
negTEdgePnl2FLOAT0Aggregate Dn Pair Pnl where oprtOpxPr 0 and oprtOpxPr oprpriorOpxVolMark 0
badTEdgePnl2FLOAT0Aggregate Dn Pair Pnl where oprtOpxPr 0
VaRsu90FLOAT0Aggregate RiskSlide uPrc up 90 vol unchanged newUPrc uPrc MathExp090
VaRsd90FLOAT0Aggregate RiskSlide uPrc dn 90 vol unchanged newUPrc uPrc MathExp090
VaRsu50FLOAT0Aggregate RiskSlide uPrc up 50 vol unchanged newUPrc uPrc MathExp050
VaRsd50FLOAT0Aggregate RiskSlide uPrc dn 50 vol unchanged newUPrc uPrc MathExp050
VaRsu15FLOAT0Aggregate RiskSlide uPrc up 15 vol unchanged newUPrc uPrc MathExp015
VaRsd15FLOAT0Aggregate RiskSlide uPrc dn 15 vol unchanged newUPrc uPrc MathExp015
VaRsu10FLOAT0Aggregate RiskSlide uPrc up 10 vol unchanged newUPrc uPrc MathExp010
VaRsd10FLOAT0Aggregate RiskSlide uPrc dn 10 vol unchanged newUPrc uPrc MathExp010
VaRsu06FLOAT0Aggregate RiskSlide uPrc up 6 vol unchanged newUPrc uPrc MathExp006
VaRsd08FLOAT0Aggregate RiskSlide uPrc dn 8 vol unchanged newUPrc uPrc MathExp008
VaRsu05FLOAT0Aggregate RiskSlide uPrc up 5 vol unchanged newUPrc uPrc MathExp005
VaRsd05FLOAT0Aggregate RiskSlide uPrc dn 5 vol unchanged newUPrc uPrc MathExp005
VaRsu1eFLOAT0Aggregate RiskSlide uPrc up 1x implied earn move vol ramp out
VaRsd1eFLOAT0Aggregate RiskSlide uPrc dn 1x implied earn move vol ramp out
VaRsu2eFLOAT0Aggregate RiskSlide uPrc up 2x implied earn move vol ramp out
VaRsd2eFLOAT0Aggregate RiskSlide uPrc dn 2x implied earn move vol ramp out
VaRearnFLOAT0Aggregate RiskSlide vol earn ramp out no uPrc move
VaRcashFLOAT0Aggregate RiskSlide uPrc up 30 vol 001 6mn deal close delta neutral
marginUDnVDnFLOAT0Aggregate RiskSlide uPrc dn vol dn
marginUDnVUpFLOAT0Aggregate RiskSlide uPrc dn vol up
marginUUpVDnFLOAT0Aggregate RiskSlide uPrc up vol dn
marginUUpVUpFLOAT0Aggregate RiskSlide uPrc up vol up
stkLiqRiskFLOAT0Aggregate Equity Liquidation Risk
optLiqRiskFLOAT0Aggregate Option Liquidation Risk
shBotC0INT0hypothetical shares bot 1 minute intervals
shSldC0INT0hypothetical shares sld
shMnyC0FLOAT0hypothetical money
shBotC1INT0hypothetical shares bot 10 minute intervals
shSldC1INT0hypothetical shares sld
shMnyC1FLOAT0hypothetical money
opHcMin25FLOAT0sumoption haircut minimum 2500cn
opHcMin37FLOAT0sumoption haircut minimum 3750cn
haircut25FLOAT0Aggregate Risk Margin JBO 25 minimum1515 uPrc slides
haircut37FLOAT0Aggregate Risk Margin PM 3750 minimum86 uPrc slides broad based1515 uPrc slides nonbroad based
numStkErrorsTINYINT UNSIGNED0number of stock positions with a computation error should be zero
numOptErrorsTINYINT UNSIGNED0number of options positions with a computation error should be zero
updateSourceenum - R5Source'None'
stkMarkFlagVARCHAR(255)'None'Stock position error flag
optMarkFlagVARCHAR(255)'None'Option position error flag
riskAlert1enum - AlertCode'None'Risk Alert Code Early Exercise etc
riskAlert2enum - AlertCode'None'Risk Alert Code Early Exercise etc
riskAlert3enum - AlertCode'None'Risk Alert Code Early Exercise etc
riskAlert4enum - AlertCode'None'Risk Alert Code Early Exercise etc
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3
accnt4
tradeDate5
riskSession6
clientFirm7

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRRisk`.`MsgSymbolRiskSummaryV5` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'stock ticker (eg MSFT, SPY)',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'stock ticker (eg MSFT, SPY)',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'stock ticker (eg MSFT, SPY)',
`accnt` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'SRAccnt (SR assigned;up to 16 chars)',
`tradeDate` DATE NOT NULL DEFAULT '1900-01-01',
`riskSession` ENUM('Regular','PostClose') NOT NULL DEFAULT 'Regular',
`clientFirm` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'SR assigned client firm',
`sector` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'SymbolControl.sector: user defined sector code',
`industry` INT NOT NULL DEFAULT 0 COMMENT 'industry code [00000000]',
`beta` FLOAT NOT NULL DEFAULT 0 COMMENT 'beta (usually beta to SPX; see AccountConfig.betaSource)',
`betaSource` ENUM('None','betaSPX','betaQQQ','betaIWM','clientBeta') NOT NULL DEFAULT 'None',
`uPrc` DOUBLE NOT NULL DEFAULT 0 COMMENT 'current live underlier price (can be from risk server, tool server, or srse server)',
`uMark` DOUBLE NOT NULL DEFAULT 0 COMMENT 'current underlier price [as of risk server record publish] [freezes at 4pm EST]',
`uOpnMark` DOUBLE NOT NULL DEFAULT 0 COMMENT 'start-of-day SR underlier mark (rotated from prior day record) [corp action adjusted]',
`lnDDelta` DOUBLE NOT NULL DEFAULT 0 COMMENT 'long net position delta value (today; SR marks )',
`shDDelta` DOUBLE NOT NULL DEFAULT 0 COMMENT 'short net position delta value (today; SR marks )',
`lnStkMktValueMid` DOUBLE NOT NULL DEFAULT 0 COMMENT 'long stock market value (today; SR marks)',
`shStkMktValueMid` DOUBLE NOT NULL DEFAULT 0 COMMENT 'short stock market value (today; SR marks)',
`optMktValueMid` DOUBLE NOT NULL DEFAULT 0 COMMENT 'option position market value (SR mid marks);=sum[opCurPosM * opr.optVolMark]',
`optMktValueVol` DOUBLE NOT NULL DEFAULT 0 COMMENT 'option position market value (SR vol marks);=sum[opCurPosM * opr.optMidMark]',
`shOpnPosClr` INT NOT NULL DEFAULT 0 COMMENT 'start of period position (from custodian or clearing firm)',
`shOpnPosPrv` INT NOT NULL DEFAULT 0 COMMENT 'start of period position (expected;from SpiderRock archive)',
`shOpnPos` INT NOT NULL DEFAULT 0 COMMENT 'start of period position (effective;from either SR or CLR record)',
`shBot` INT NOT NULL DEFAULT 0 COMMENT 'number of shares bot today',
`shSld` INT NOT NULL DEFAULT 0 COMMENT 'number of shares sld today',
`shSldShrt` INT NOT NULL DEFAULT 0 COMMENT 'number of shares sld short today',
`shMnyBot` DOUBLE NOT NULL DEFAULT 0 COMMENT 'shares money bot today',
`shMnySld` DOUBLE NOT NULL DEFAULT 0 COMMENT 'shares money sld today',
`shBotHdg` INT NOT NULL DEFAULT 0 COMMENT 'number of shares bot today from open pos hedging (spdrSource=HedgeTool)',
`shSldHdg` INT NOT NULL DEFAULT 0 COMMENT 'number of shares sld today from open pos hedging (spdrSource=HedgeTool)',
`shBotTrh` INT NOT NULL DEFAULT 0 COMMENT 'number of shares bot today from open pos hedging (spdrSource=TradeHedge)',
`shSldTrh` INT NOT NULL DEFAULT 0 COMMENT 'number of shares sld today from open pos hedging (spdrSource=TradeHedge)',
`shBotOpn` INT NOT NULL DEFAULT 0 COMMENT 'number of shares bot today from open pos hedging (spdrSource=OpenHedge)',
`shSldOpn` INT NOT NULL DEFAULT 0 COMMENT 'number of shares sld today from open pos hedging (spdrSource=OpenHedge)',
`shBotTrd` INT NOT NULL DEFAULT 0 COMMENT 'number of shares bot today from a trade hedging source (AutoHedge or Trades loop)',
`shSldTrd` INT NOT NULL DEFAULT 0 COMMENT 'number of shares sld today from a trade hedging source (AutoHedge or Trades loop)',
`maxStkDttm` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'most recent timestamp of a qualifying stock execution (used to ensure risk record integrity)',
`stPnlMid` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Stock Pnl (SR Marks);=(nbbo.mid - stPrvPrc) * shOpnClr',
`stPnlClr` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Stock Pnl (CLR Marks);=(nbbo.mid - stClrPrc) * shOpnClr',
`stPnlDay` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Net Stock Day Pnl;=sum[ (nbbo.min - fillPrice) * fillQuantity * side ]',
`stDivPnl` DOUBLE NOT NULL DEFAULT 0 COMMENT 'total cash paid/collected since prior period for this position (stock dividend value)',
`stBorrowPnl` DOUBLE NOT NULL DEFAULT 0 COMMENT 'total cash paid/collected since prior period for this position (borrow pnl; usually interest on HTB names)',
`opCnAbsCurPos` INT NOT NULL DEFAULT 0 COMMENT 'abs number of option contracts (position + fills);=sum[abs(opr.cnCurPos)]',
`opCnAbsOpnClr` INT NOT NULL DEFAULT 0 COMMENT 'abs number of start of period option contracts (CLR view); =sum[abs(opr.cnOpnClr)]',
`opCnAbsOpnPrv` INT NOT NULL DEFAULT 0 COMMENT 'abs number of start of period option contracts (SR view); =sum[abs(opr.cnOpnPrv)]',
`opCnAbsOpnPos` INT NOT NULL DEFAULT 0 COMMENT 'abs number of start of period option contracts; =sum[abs(opr.cnOpnPos)]',
`opCnAbsOpnBrk` INT NOT NULL DEFAULT 0 COMMENT 'abs number of option contract start of period breaks (CLR - PRV);=sum[abs(opr.cnOpnClr - opr.cnOpnPrv)]',
`opShShort` INT NOT NULL DEFAULT 0 COMMENT 'equivalent shares from short option positions',
`opCnPosCall` INT NOT NULL DEFAULT 0 COMMENT 'net number of call contracts; =sum[opr.cnOpnClr + opr.cnBot - opr.cnSld] (if call)',
`opCnPosPut` INT NOT NULL DEFAULT 0 COMMENT 'net number of call contracts; =sum[opr.cnOpnClr + opr.cnBot - opr.cnSld] (if put)',
`opCnAbsPair` INT NOT NULL DEFAULT 0 COMMENT 'abs number of option contracts with CP reversals removed;=sum[abs(opr.cnOpnClr + opr.cnBot - opr.cnSld) - abs(opr.cnNetPos)]',
`absAtmEquivCn` FLOAT NOT NULL DEFAULT 0 COMMENT 'abs atm equivalent contracts; = sum[abs(opr.cnOpnPos + opr.cnBot - opr.cnSld) * opr.ve / opr.atmVega]',
`opCnBot` INT NOT NULL DEFAULT 0 COMMENT 'number of option contracts bot today;=sum[opr.cnBot]',
`opCnSld` INT NOT NULL DEFAULT 0 COMMENT 'number of option contracts sld today;=sum[opr.cnSld]',
`opMnyBot` DOUBLE NOT NULL DEFAULT 0 COMMENT 'option money bot',
`opMnySld` DOUBLE NOT NULL DEFAULT 0 COMMENT 'option money sld',
`opPremBot` FLOAT NOT NULL DEFAULT 0 COMMENT 'option premium bot today;=sum[(max(0, opr.optVolMark - opr.loBound) * opr.pointValue) * opr.cnBot]',
`opPremSld` FLOAT NOT NULL DEFAULT 0 COMMENT 'option premium sld today;=sum[(max(0, opr.optVolMark - opr.loBound) * opr.pointValue) * opr.cnSld]',
`maxOptDttm` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'DateTime of most recent SpdrOptionExecution (if any)',
`opPnlVol` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Option Open Pnl (SR vol marks); =sum[opr.opnPnlVolMark]',
`opPnlMid` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Option Open Pnl (SR mid marks); =sum[opr.opnPnlMidMark]',
`opPnlClr` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Option Open Pnl (CLR marks); =sum[opr.opnPnlClrMark]',
`opPnlBrk` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Option Mark Break Pnl (SR vol marks to CLR marks);=sum[(opr.cnOpnClr * opr.pointValue) * (opr.optVolMark - opr.optMidMark)]',
`opPnlDay` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Option Day Pnl;=sum[opr.dayPnl]',
`opDnPnlDay` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Option DN Day Pnl (delta neutral);=sum[opr.dnDayPnl]',
`opDayVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Day Vega;=sum[opr.ve * (opr.cnBot - opr.cnSld) * opr.pointValue]',
`opDayWVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Day Vol Weighted Vega;=sum[opr.ve * opr.iVol * (opr.cnBot - opr.cnSld) * opr.pointvalue]',
`opDayTVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Day Time-Weighted Vega;=sum[opr.ve * / sqrt(max(0.1, opr.years * 4)) * (opr.cnBot - opr.cnSld) * opr.pointValue]',
`opDayWtVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Day Vol Time-Weighted Vega;=sum[opr.ve * (opr.iVol / sqrt(max(0.1, opr.years * 4))) * (opr.cnBot - opr.cnSld) * opr.pointValue]',
`opDayTheta` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Day Theta;=sum[opr.th * ((opr.cnBot - opr.cnSld) * opr.pointValue)]',
`opDayDelta` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Day Delta;=sum[opr.de * ((opr.cnBot - opr.cnSld) * opr.underliersPerCn)]',
`opTrdDelta` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Trade Delta (delta fixed at time of trade);=sum[opr.trdDelta]',
`pairPnl` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Dn Pair Pnl;=sum[shNetClrM * (opr.optVolMark - opr.optOpnVolMark - opr.hedgeDePr * (opr.uMark - opr.uOpnMark))]',
`contHedgePnl` FLOAT NOT NULL DEFAULT 0 COMMENT 'Estimated continuous hedging pnl (open positions only) [~1 minute intervals]',
`contHedgePnl1` FLOAT NOT NULL DEFAULT 0 COMMENT 'Estimated continuous hedging pnl (open positions only) [~10 minute intervals]',
`opEdgeOpened` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Edge Opened (new risk);=sum[opr.edgeOpened]',
`opEdgeClosed` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Edge Closed (new risk);=sum[opr.edgeClosed]',
`pnlDn` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: delta neutral pnl: =sum[volPnl - shClrM * dUPrc * opr.dePr]',
`pnlDe` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: delta pnl;=sum[shClrM * dUPrc * opr.dePr]',
`pnlSl` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: slope pnl;=sum[shClrM * dUPrc * opr.vePr * opr.veSlopePr]',
`pnlGa` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: gamma pnl;=sum[shClrM * 0.5 * dUPrc * dUPrc * (opr.ga + opr.gaPr)/2]',
`pnlTh` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: theta pnl;=sum[shClrM * dTime * -opr.thPr]',
`pnlVe` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: vega pnl;=sum[shClrM * 100 * dVol * opr.vePr]',
`pnlVo` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: volga pnl;=sum[shClrM * 0.5 * 100 * 100 * dVol * dVol * opr.voPr]',
`pnlVa` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: vanna pnl;=sum[shClrM * 100 * dVol * dUPrc * opr.vaPr]',
`pnlErr` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: error (unexplained) pnl;=sum[shClrM * (volPnl - pnlDe - pnlGa - pnlTh - pnlVe)]',
`pnlRate` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: rate pnl;=sum[shClrM * 100 * dRate * opr.rhPr]',
`pnlSDiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: sdiv pnl;=sum[shClrM * 100 * dSDiv * opr.phPr]',
`pnlDDiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: ddiv pnl;=sum[shClrM * 100 * (opr.ddiv - opr.ddivPr) / opr.uPrc * opr.phPr]',
`pnlTe` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Pnl Attr: theo edge pnl;=sum[shClrM * ((opr.tOpx - opr.optVolMark) - (opr.tOpxPr - opr.optOpnVolMark))]',
`pctIvChange` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Avg IVol Change (Numerator);=sum[abs(shClrM) * opr.ve * log(opr.iVol/opr.iVolPr)]',
`pctIvVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Avg IVol Change (Denominator);=sum[abs(shClrM) * opr.ve]',
`pctTvChange` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Avg TVol Change (Numerator);=sum[abs(shClrM) * opr.ve * log(opr.tVol/opr.tVolPr)]',
`pctTvVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Avg TVol Change (Denominator);=sum[abs(shClrM) * opr.ve]',
`stkWidthMny` FLOAT NOT NULL DEFAULT 0 COMMENT 'Stock Market Width Value;=sum[0.5 * abs(shCurPos) * (spr.stkAsk - spr.stkBid)]',
`optWidthMny` FLOAT NOT NULL DEFAULT 0 COMMENT 'Option Market Width Value;=sum[0.5 * abs(shCurPosM) * (opr.optAsk - opr.optBid)]',
`dayDDelta` FLOAT NOT NULL DEFAULT 0 COMMENT 'Day $Delta (bot or sld;all sources) today;',
`delta` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Delta;=sum[shCurPos] + sum[fcCurPosM] + sum[shCurPosM * opr.de] + sum[other.delta]',
`ddelta` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position $Delta (Delta * DDMult)',
`deDecay` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position DeltaDecay;=sum[shCurPosM * opr.deDecay] + sum[other.deDecay]',
`ddDecay` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position $DeltaDecay (DeltaDecay * DDMult) [change in $delta when one trading day (1.0/252.0) is taken out of option pricing]',
`gamma` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Gamma;=sum[shCurPosM * opr.ga] + sum[other.gamma]',
`dGamma` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position $Gamma',
`theta` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Theta;=sum[shCurPosM * opr.th] + sum[other.theta]',
`rho` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Rho;=sum[shCurPosM * opr.rh] + sum[other.rho]',
`vega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Vega;=sum[shCurPosM * opr.ve] + sum[other.vega]',
`tVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Time Weight Vega;=sum[shCurPosM * opr.ve / sqrt(max(0.1, opr.years * 4))]',
`wVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Vol Weighted Vega;=sum[shCurPosM * opr.iVol * opr.ve]',
`wtVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Vol Time Weighted Vega;=sum[shCurPosM * opr.iVol * opr.ve / sqrt(max(0.1, opr.years * 4))]',
`ivolVe` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Avg Vol Numerator (vega weighted) (avg = ivolVe / avega); =sum[abs(shCurPosM) * opr.iVol * opr.ve]',
`volga` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Volga;=sum[shCurPosM * opr.vo] + sum[other.volga]',
`vanna` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Vanna;=sum[shCurPosM * opr.va] + sum[other.vanna]',
`slope` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position VegaDelta (uPrc/Vol correlation factor);=sum[shCurPosM * opr.sl * opr.ve] + sum[other.slope]',
`avega` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Postion Abs Vega;=sum[abs(shCurPosM ) * opr.ve]',
`atheta` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Postion Abs Theta;= sum[abs(shCurPosM) * opr.th]',
`hedgeGamma` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Postion Hedge Gamma (either iVol or tVol based;can go binary);=sum[shCurPos * opr.hedgeGa]',
`hedgeDGamma` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Postion ($) Hedge Gamma',
`premOvPar` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Premium Over Parity;=sum[shCurPosM * max(0, opr.optVolMark - opr.loBound)]',
`simpPremOvPar` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Premium Over Parity Simple;=sum[shCurPosM * max(0, opr.opxMidMark - max(0, ±(strike - uprc)))]',
`wtVeDd` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Dd Time Weighted Vega; =sum[wtVega] if opr.xde < -0.30',
`wtVeDn` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Dn Time Weighted Vega; =sum[wtVega] if -0.30 <= opr.xde < -0.10',
`wtVeAt` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate At Time Weighted Vega; =sum[wtVega] if abs(opr.xde) <= 0.10',
`wtVeUp` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Up Time Weighted Vega; =sum[wtVega] if +0.10 < opr.xde <= +0.30',
`wtVeDu` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Du Time Weighted Vega; =sum[wtVega] if +0.30 < opr.xde',
`wtVeM1` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate M1 Time Weighted Vega; =sum[wtVega] if days < 10',
`wtVeM2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate M2 Time Weighted Vega; =sum[wtVega] if 10 < days < 25',
`wtVeM3` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate M3 Time Weighted Vega; =sum[wtVega] if 25 < days < 65',
`wtVeM4` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate M4 Time Weighted Vega; =sum[wtVega] if 65 < days < 130',
`wtVeM5` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate M5 Time Weighted Vega; =sum[wtVega] if 130 < days',
`pinXX` FLOAT NOT NULL DEFAULT 0 COMMENT 'pin strike nearest to current uPrc (zero = none) (only exists if there are near ATM option positions expiring today)',
`opnDeBelow` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Open Delta (Open Positions + Open Hedge Trades Only) if liveUPrc < pinXX',
`opnDeAbove` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Open Delta (Open Positions + Open Hedge Trades Only) if liveUPrc > pinXX',
`opnDDeBelow` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position ($) Open Delta (Open Positions + Open Hedge Trades Only) if liveUPrc < pinXX',
`opnDDeAbove` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position ($) Open Delta (Open Positions + Open Hedge Trades Only) if liveUPrc > pinXX',
`posDeBelow` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Hedge Delta (Current Position) if liveUPrc < pinXX',
`posDeAbove` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Hedge Delta (Current Position) if liveUPrc > pinXX',
`posDDeBelow` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position ($) Hedge Delta (Current Position) if liveUPrc < pinXX',
`posDDeAbove` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position ($) Hedge Delta (Current Position) if liveUPrc > pinXX',
`posHedgeDeltaEx` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position Hedge Delta (Current Position) if exDate != today',
`posHedgeDDeltaEx` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Position ($) Hedge Delta (Current Position) if exDate != today',
`mmhDelta` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Delta allocated from other symbols (multi-multihedge symbols)',
`mmhContracts` INT NOT NULL DEFAULT 0 COMMENT 'Aggregate Contracts allocated from other symbols (multi-multihedge symbols)',
`mmhSources` TINYTEXT NOT NULL DEFAULT '' COMMENT 'Allocation source string (usually mmh contracts)',
`tEdge` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate $ Theo Edge;=sum[shNetPosM * (opr.tOpx - opr.optVolMark)] if opr.tVol > 0.01 and opr.tOpx > 0.0 and opr.optVolMark > 0.0',
`tEdgeMult` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Abs Net Contracts (Rev/Conv contracts removed);= sum[abs(shNetPosM)]',
`tEdgePr` FLOAT NOT NULL DEFAULT 0 COMMENT 'Prior Day $ Theo Edge',
`tEdgeMultPr` FLOAT NOT NULL DEFAULT 0 COMMENT 'Prior Day Aggregate Abs Net Contracts',
`numTVolErrors` SMALLINT NOT NULL DEFAULT 0 COMMENT 'number of opr.tErr != 0 or opr.tVol < 0.01',
`posTEdgeWV` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Vol Weighted Vega (wvega) where (opr.tOpx > 0 and (opr.tOpx - opr.optVolMark) >= 0)',
`negTEdgeWV` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Vol Weighted Vega (wvega) where (opr.tOpx > 0 and (opr.tOpx - opr.optVolMark) < 0)',
`badTEdgeWV` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Vol Weighted Vega (wvega) where (opr.tOpx = 0)',
`posTEdgePnl` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Dn Pair Pnl where (opr.tOpxPr > 0 and (opr.tOpxPr - opr.priorOpxVolMark) >= 0)',
`negTEdgePnl` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Dn Pair Pnl where (opr.tOpxPr > 0 and (opr.tOpxPr - opr.priorOpxVolMark) < 0)',
`badTEdgePnl` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Dn Pair Pnl where (opr.tOpxPr = 0)',
`tEdge2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate $ Theo Edge;=sum[shNetPosM * (opr.tOpx - opr.optVolMark)] if opr.tVol > 0.01 and opr.tOpx > 0.0 and opr.optVolMark > 0.0',
`tEdgeMult2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Abs Net Contracts (Rev/Conv contracts removed);= sum[abs(shNetPosM)]',
`tEdgePr2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Prior Day $ Theo Edge',
`tEdgeMultPr2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Prior Day Aggregate Abs Net Contracts',
`numTVolErrors2` SMALLINT NOT NULL DEFAULT 0 COMMENT 'number of opr.tErr != 0 or opr.tVol < 0.01',
`posTEdgeWV2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Vol Weighted Vega (wvega) where (opr.tOpx > 0 and (opr.tOpx - opr.optVolMark) >= 0)',
`negTEdgeWV2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Vol Weighted Vega (wvega) where (opr.tOpx > 0 and (opr.tOpx - opr.optVolMark) < 0)',
`badTEdgeWV2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Vol Weighted Vega (wvega) where (opr.tOpx = 0)',
`posTEdgePnl2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Dn Pair Pnl where (opr.tOpxPr > 0 and (opr.tOpxPr - opr.priorOpxVolMark) >= 0)',
`negTEdgePnl2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Dn Pair Pnl where (opr.tOpxPr > 0 and (opr.tOpxPr - opr.priorOpxVolMark) < 0)',
`badTEdgePnl2` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Dn Pair Pnl where (opr.tOpxPr = 0)',
`VaRsu90` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up 90%, vol unchanged (newUPrc = uPrc * Math.Exp(+0.90))',
`VaRsd90` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn 90%, vol unchanged (newUPrc = uPrc * Math.Exp(-0.90))',
`VaRsu50` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up 50%, vol unchanged (newUPrc = uPrc * Math.Exp(+0.50))',
`VaRsd50` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn 50%, vol unchanged (newUPrc = uPrc * Math.Exp(-0.50))',
`VaRsu15` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up 15%, vol unchanged (newUPrc = uPrc * Math.Exp(+0.15))',
`VaRsd15` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn 15%, vol unchanged (newUPrc = uPrc * Math.Exp(-0.15))',
`VaRsu10` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up 10%, vol unchanged (newUPrc = uPrc * Math.Exp(+0.10))',
`VaRsd10` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn 10%, vol unchanged (newUPrc = uPrc * Math.Exp(-0.10))',
`VaRsu06` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up 6%, vol unchanged (newUPrc = uPrc * Math.Exp(+0.06))',
`VaRsd08` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn 8%, vol unchanged (newUPrc = uPrc * Math.Exp(-0.08))',
`VaRsu05` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up 5%, vol unchanged (newUPrc = uPrc * Math.Exp(+0.05))',
`VaRsd05` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn 5%, vol unchanged (newUPrc = uPrc * Math.Exp(-0.05))',
`VaRsu1e` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up 1x implied earn move, vol ramp out',
`VaRsd1e` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn 1x implied earn move, vol ramp out',
`VaRsu2e` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up 2x implied earn move, vol ramp out',
`VaRsd2e` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn 2x implied earn move, vol ramp out',
`VaRearn` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: vol earn ramp out (no uPrc move)',
`VaRcash` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up 30%, vol = 0.01, 6mn deal close (delta neutral)',
`marginUDnVDn` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn, vol dn',
`marginUDnVUp` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc dn, vol up',
`marginUUpVDn` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up, vol dn',
`marginUUpVUp` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate RiskSlide: uPrc up, vol up',
`stkLiqRisk` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Equity Liquidation Risk',
`optLiqRisk` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Option Liquidation Risk',
`shBotC0` INT NOT NULL DEFAULT 0 COMMENT 'hypothetical shares bot (~1 minute intervals)',
`shSldC0` INT NOT NULL DEFAULT 0 COMMENT 'hypothetical shares sld',
`shMnyC0` FLOAT NOT NULL DEFAULT 0 COMMENT 'hypothetical money',
`shBotC1` INT NOT NULL DEFAULT 0 COMMENT 'hypothetical shares bot (~10 minute intervals)',
`shSldC1` INT NOT NULL DEFAULT 0 COMMENT 'hypothetical shares sld',
`shMnyC1` FLOAT NOT NULL DEFAULT 0 COMMENT 'hypothetical money',
`opHcMin25` FLOAT NOT NULL DEFAULT 0 COMMENT 'sum(option haircut minimum) [$25.00/cn]',
`opHcMin37` FLOAT NOT NULL DEFAULT 0 COMMENT 'sum(option haircut minimum) [$37.50/cn]',
`haircut25` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Risk Margin (JBO): [$25 minimum;-15/+15 uPrc slides]',
`haircut37` FLOAT NOT NULL DEFAULT 0 COMMENT 'Aggregate Risk Margin (PM): [$37.50 minimum;-8/+6 uPrc slides (broad based);-15/+15 uPrc slides (non-broad based)]',
`numStkErrors` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'number of stock positions with a computation error (should be zero)',
`numOptErrors` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'number of options positions with a computation error (should be zero)',
`updateSource` ENUM('None','Loop','Priority') NOT NULL DEFAULT 'None',
`stkMarkFlag` VARCHAR(255) NOT NULL DEFAULT 'None' COMMENT 'Stock position error flag',
`optMarkFlag` VARCHAR(255) NOT NULL DEFAULT 'None' COMMENT 'Option position error flag',
`riskAlert1` ENUM('None','ExerciseNow','ExBeforeNextDiv','ExAfterNextDiv','ExBeforeFutureDiv','ExAfterFutureDiv','ExDivCall','ExAskSoon','ExAskNow','ExSurfSoon','ExSurfNow','ExBidSoon','ExBidNow') NOT NULL DEFAULT 'None' COMMENT 'Risk Alert Code: Early Exercise, etc.',
`riskAlert2` ENUM('None','ExerciseNow','ExBeforeNextDiv','ExAfterNextDiv','ExBeforeFutureDiv','ExAfterFutureDiv','ExDivCall','ExAskSoon','ExAskNow','ExSurfSoon','ExSurfNow','ExBidSoon','ExBidNow') NOT NULL DEFAULT 'None' COMMENT 'Risk Alert Code: Early Exercise, etc.',
`riskAlert3` ENUM('None','ExerciseNow','ExBeforeNextDiv','ExAfterNextDiv','ExBeforeFutureDiv','ExAfterFutureDiv','ExDivCall','ExAskSoon','ExAskNow','ExSurfSoon','ExSurfNow','ExBidSoon','ExBidNow') NOT NULL DEFAULT 'None' COMMENT 'Risk Alert Code: Early Exercise, etc.',
`riskAlert4` ENUM('None','ExerciseNow','ExBeforeNextDiv','ExAfterNextDiv','ExBeforeFutureDiv','ExAfterFutureDiv','ExDivCall','ExAskSoon','ExAskNow','ExSurfSoon','ExSurfNow','ExBidSoon','ExBidNow') NOT NULL DEFAULT 'None' COMMENT 'Risk Alert Code: Early Exercise, etc.',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`,`accnt`,`tradeDate`,`riskSession`,`clientFirm`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='SymbolRiskSummary records contain live symbol level risk aggregation of StockPositionRecord and OptionPositionRecord values.\nRecords are published by AggRiskServers if/when positions change and about once per minute otherwise.';

SELECT TABLE EXAMPLE QUERY

SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`accnt`,
`tradeDate`,
`riskSession`,
`clientFirm`,
`sector`,
`industry`,
`beta`,
`betaSource`,
`uPrc`,
`uMark`,
`uOpnMark`,
`lnDDelta`,
`shDDelta`,
`lnStkMktValueMid`,
`shStkMktValueMid`,
`optMktValueMid`,
`optMktValueVol`,
`shOpnPosClr`,
`shOpnPosPrv`,
`shOpnPos`,
`shBot`,
`shSld`,
`shSldShrt`,
`shMnyBot`,
`shMnySld`,
`shBotHdg`,
`shSldHdg`,
`shBotTrh`,
`shSldTrh`,
`shBotOpn`,
`shSldOpn`,
`shBotTrd`,
`shSldTrd`,
`maxStkDttm`,
`stPnlMid`,
`stPnlClr`,
`stPnlDay`,
`stDivPnl`,
`stBorrowPnl`,
`opCnAbsCurPos`,
`opCnAbsOpnClr`,
`opCnAbsOpnPrv`,
`opCnAbsOpnPos`,
`opCnAbsOpnBrk`,
`opShShort`,
`opCnPosCall`,
`opCnPosPut`,
`opCnAbsPair`,
`absAtmEquivCn`,
`opCnBot`,
`opCnSld`,
`opMnyBot`,
`opMnySld`,
`opPremBot`,
`opPremSld`,
`maxOptDttm`,
`opPnlVol`,
`opPnlMid`,
`opPnlClr`,
`opPnlBrk`,
`opPnlDay`,
`opDnPnlDay`,
`opDayVega`,
`opDayWVega`,
`opDayTVega`,
`opDayWtVega`,
`opDayTheta`,
`opDayDelta`,
`opTrdDelta`,
`pairPnl`,
`contHedgePnl`,
`contHedgePnl1`,
`opEdgeOpened`,
`opEdgeClosed`,
`pnlDn`,
`pnlDe`,
`pnlSl`,
`pnlGa`,
`pnlTh`,
`pnlVe`,
`pnlVo`,
`pnlVa`,
`pnlErr`,
`pnlRate`,
`pnlSDiv`,
`pnlDDiv`,
`pnlTe`,
`pctIvChange`,
`pctIvVega`,
`pctTvChange`,
`pctTvVega`,
`stkWidthMny`,
`optWidthMny`,
`dayDDelta`,
`delta`,
`ddelta`,
`deDecay`,
`ddDecay`,
`gamma`,
`dGamma`,
`theta`,
`rho`,
`vega`,
`tVega`,
`wVega`,
`wtVega`,
`ivolVe`,
`volga`,
`vanna`,
`slope`,
`avega`,
`atheta`,
`hedgeGamma`,
`hedgeDGamma`,
`premOvPar`,
`simpPremOvPar`,
`wtVeDd`,
`wtVeDn`,
`wtVeAt`,
`wtVeUp`,
`wtVeDu`,
`wtVeM1`,
`wtVeM2`,
`wtVeM3`,
`wtVeM4`,
`wtVeM5`,
`pinXX`,
`opnDeBelow`,
`opnDeAbove`,
`opnDDeBelow`,
`opnDDeAbove`,
`posDeBelow`,
`posDeAbove`,
`posDDeBelow`,
`posDDeAbove`,
`posHedgeDeltaEx`,
`posHedgeDDeltaEx`,
`mmhDelta`,
`mmhContracts`,
`mmhSources`,
`tEdge`,
`tEdgeMult`,
`tEdgePr`,
`tEdgeMultPr`,
`numTVolErrors`,
`posTEdgeWV`,
`negTEdgeWV`,
`badTEdgeWV`,
`posTEdgePnl`,
`negTEdgePnl`,
`badTEdgePnl`,
`tEdge2`,
`tEdgeMult2`,
`tEdgePr2`,
`tEdgeMultPr2`,
`numTVolErrors2`,
`posTEdgeWV2`,
`negTEdgeWV2`,
`badTEdgeWV2`,
`posTEdgePnl2`,
`negTEdgePnl2`,
`badTEdgePnl2`,
`VaRsu90`,
`VaRsd90`,
`VaRsu50`,
`VaRsd50`,
`VaRsu15`,
`VaRsd15`,
`VaRsu10`,
`VaRsd10`,
`VaRsu06`,
`VaRsd08`,
`VaRsu05`,
`VaRsd05`,
`VaRsu1e`,
`VaRsd1e`,
`VaRsu2e`,
`VaRsd2e`,
`VaRearn`,
`VaRcash`,
`marginUDnVDn`,
`marginUDnVUp`,
`marginUUpVDn`,
`marginUUpVUp`,
`stkLiqRisk`,
`optLiqRisk`,
`shBotC0`,
`shSldC0`,
`shMnyC0`,
`shBotC1`,
`shSldC1`,
`shMnyC1`,
`opHcMin25`,
`opHcMin37`,
`haircut25`,
`haircut37`,
`numStkErrors`,
`numOptErrors`,
`updateSource`,
`stkMarkFlag`,
`optMarkFlag`,
`riskAlert1`,
`riskAlert2`,
`riskAlert3`,
`riskAlert4`,
`timestamp`
FROM `SRRisk`.`MsgSymbolRiskSummaryV5`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a DATE */
`tradeDate` = '2022-01-01'
AND
/* Replace with a ENUM('Regular','PostClose') */
`riskSession` = 'Regular'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

Doc Columns Query

SELECT * FROM SRRisk.doccolumns WHERE TABLE_NAME='SymbolRiskSummaryV5' ORDER BY ordinal_position ASC;